<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('tables', function (Blueprint $table) {
            $table->dateTime('alert_date')->nullable()->comment('定时提醒');
            $table->boolean('alert_marked')->default(true)->comment('是否已提醒');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('tables', function (Blueprint $table) {
            $table->dropColumn('alert_date');
            $table->dropColumn('alert_marked');
        });
    }
};
